<extend name="Public/base"/>

<block name="body">
	<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <h2>{:isset($info['id'])?'编辑':'新增'}抢购会时间表</h2>
    </div>
    <form action="__SELF__" method="post" class="form-horizontal" autocomplete="off">
    	<div class="form-item">
    		<label class="item-label">起始时间</label>
    		<div class="controls no-overview">
	     		<!-- <input type="text" class="text input-2x time" name="start_time" value="{$info.start_time|time_format=###,'Y-m-d'}" placeholder="初始时间"> -->
	     		<select class="selectpicker" name="start_time_hour" data-size="5" data-live-search="true" title="小时">
					<volist name=":getStatus('hours')" id="val" key="key">
	    				<option value="{$key-1}" <eq name="info.start_time_hour" value="$val">selected</eq>>{$val}</option>
	    			</volist>
				</select>
	     	</div>
	    </div>
	    <div class="form-item">
    		<label class="item-label">结束时间</label>
    		<div class="controls no-overview">
	     		<!-- <input type="text" class="text input-2x time" name="end_time" value="{$info.end_time|time_format=###,'Y-m-d'}" placeholder="结束时间"> -->
	     		<select class="selectpicker" name="end_time_hour" data-size="5" data-live-search="true" title="小时">
					<volist name=":getStatus('hours')" id="val" key="key">
	    				<option value="{$key-1}" <eq name="info.end_time_hour" value="$val">selected</eq>>{$val}</option>
	    			</volist>
				</select>
	     	</div>
	    </div>
		<div class="form-item">
	     	<button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
	     	<a class="btn btn-return" href="{:U('Special/panic')}">返 回</a>
	     	<input type="hidden" name="id" value="{$info.id}">
	    </div>
		</form>
		</div>
	</div>
</block>

<block name="script">
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<link rel="stylesheet" type="text/css" href="__STATIC__/bootstrap/css/bootstrap-select.css" />
<link rel="stylesheet" type="text/css" href="__STATIC__/bootstrap/css/bootstrap-typeahead.css" />
<script type="text/javascript" src="__STATIC__/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="__STATIC__/bootstrap/js/bootstrap-select.js"></script>
<script type="text/javascript" src="__STATIC__/bootstrap/js/bootstrap-typeahead.js"></script>
<script type="text/javascript">
//导航高亮
highlight_subnav('{:U('Special/panic')}');

$(function(){
	$('.time').datetimepicker({
        format: 'yyyy-mm-dd',
        language:"zh-CN",
        minView:2,
        autoclose:true
    });
});
</script>
</block>